package zOthers;

import java.awt.image.BufferedImage;

/**
 * This class combines the buffered image with a unique name so as to facilitate control.
 */
public class ImageStructure {

	/**
	 * It's recommended that the name is given in consistent with the path where the specified
	 * image locates on disk, because it's surely unique and no more redundant variable to store
	 * the path
	 */

	/*
	 * Image names of login screen components including background and buttons
	 */
	public static final String IMAGE_NAME_PANEL_LOGIN_BACKGROUND = "./res/Images/Backgrounds/login.jpg";

	/*
	 * Image names of blocks
	 */
	public static final String IMAGE_NAME_BLOCK_ROAD_BASE = "./src/Images/Block/road1.png";
	public static final String IMAGE_NAME_BLOCK_ROAD_BOTTOM_LEFT = "./src/Images/Block/road2.png";
	public static final String IMAGE_NAME_BLOCK_ROAD_BOTTOM_RIGHT = "./src/Images/Block/road3.png";
	public static final String IMAGE_NAME_BLOCK_ROAD_TOP_LEFT = "./src/Images/Block/road4.bmp";
	public static final String IMAGE_NAME_BLOCK_ROAD_TOP_RIGHT = "./src/Images/Block/road5.png";
	public static final String IMAGE_NAME_BLOCK_FIELD_1 = "./src/Images/Block/field1.png";
	public static final String IMAGE_NAME_BLOCK_FIELD_2 = "./src/Images/Block/field2.png";
	public static final String IMAGE_NAME_BLOCK_WATER_1 = "./src/Images/Block/water1.png";
	public static final String IMAGE_NAME_BLOCK_WATER_2 = "./src/Images/Block/water2.png";
	public static final String IMAGE_NAME_BLOCK_WATER_3 = "./src/Images/Block/water3.png";
	public static final String IMAGE_NAME_BLOCK_MOUNTAIN = "./src/Images/Block/mountain.png";
	public static final String IMAGE_NAME_BLOCK_FOREST = "./src/Images/Block/forest.png";

	/*
	 * Image names of units
	 */

	/*
	 * Image names of cursors
	 */
	public static final String IMAGE_NAME_CURSOR_LEFT = "./src/Images/cursor_left.png";
	public static final String IMAGE_NAME_CURSOR_RIGHT = "./src/Images/cursor_right.png";


	private final String imageName;
	private final BufferedImage image;

	/*
	 * Constructor
	 */
	public ImageStructure(String iN, BufferedImage i) {
		imageName = iN;
		image = i;
	}

	/*
	 * Accessors
	 */
	public String getImageName() {
		return imageName;
	}

	public BufferedImage getImage() {
		return image;
	}
}
